package cn.imvc.app.models;

import org.springframework.data.domain.Page;

import cn.imvc.app.entities.BrandGoodsClass;
import cn.imvc.app.entities.Goods;
import cn.imvc.data.domain.ViewRequest;

public interface BrandGoodsClassModel {

	Page<BrandGoodsClass> find(ViewRequest viewRequest);

	BrandGoodsClass get(int id);

	int save(int goodsClassId,int brandId ,BrandGoodsClass brandGoodsClass);

	int update(int id, int goodsClassId,int brandId , BrandGoodsClass brandGoodsClass);

	void delete(int id);

	void deleteBatch(int[] ids);

	void updateRelation(Goods goods,int oper);
}
